package com.example.lgseckill.domain;

import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * Author:e
 * 秒杀商品表
 * Date:2021/8/17 10:13 上午
 **/
public class SeckillProduct {
    /**
     * 秒杀商品id
     */
    @TableId("seckill_product_id")
    private Long seckillProductId;

    /**
     * 商品id
     */
    private Long productId;

    /**
     * 数量
     */
    private int number;

    /**
     * 单价
     */
    private Double seckillPrice;

    /**
     * 秒杀开始时间
     */
    private Date startTime;

    /**
     * 秒杀结束时间
     */
    private Date endTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 秒杀状态，0未开始，1秒杀进行中，2秒杀结束
     */
    private int status;

    public Long getSeckillProductId() {
        return seckillProductId;
    }

    public void setSeckillProductId(Long seckillProductId) {
        this.seckillProductId = seckillProductId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public Double getSeckillPrice() {
        return seckillPrice;
    }

    public void setSeckillPrice(Double seckillPrice) {
        this.seckillPrice = seckillPrice;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "SeckillProduct{" +
                "seckillProductId=" + seckillProductId +
                ", productId=" + productId +
                ", number=" + number +
                ", seckillPrice=" + seckillPrice +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                ", status=" + status +
                '}';
    }
}
